# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=aqbanking
pkgver=6.5.4
pkgrel=1
pkgdesc="A library for online banking and financial applications"
url="https://www.aquamaniac.de/aqbanking"
arch="all"
license="GPL-2.0-or-later"
depends="ktoblzcheck"
makedepends="gwenhywfar-dev gmp-dev gettext-dev bzip2
	automake autoconf libtool bash"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://www.aquamaniac.de/rdm/attachments/download/499/aqbanking-$pkgver.tar.gz
	libintl.patch"

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-backends="aqhbci aqofxconnect aqnone"
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
30a957dde4c0b21c370c2c79c798973660358e952830b9785e5d6ab92884bcfb22bb06b4020dab1a2dbc2676e8896e21d4e70fd29587fecf20b7f275cd75898b  aqbanking-6.5.4.tar.gz
142f0037abfc18e4ce297b815bcf6f24c50a4a46581d58651e7e76aedb9977e42b58f7a7fb145d6d463e61e99fffb018e238d3f7c81cb306526b4fcabaacda71  libintl.patch
"
